package lang

type Slice []*String

func NewSlice(arr []string) Slice {
	var s []*String
	for i := range arr {
		s = append(s, NewString(arr[i]))
	}
	return s
}

func (s Slice) ToSimple() []string {
	var arr []string
	for _, str := range s {
		arr = append(arr, str.String())
	}
	return arr
}

func (s Slice) Length() int {
	return len(s)
}
